import request from '@/utils/request'

// 查询商品题材列表
export function listProductTheme(query) {
  return request({
    url: '/system/ProductTheme/list',
    method: 'get',
    params: query
  })
}

// 查询商品题材详细
export function getProductTheme(id) {
  return request({
    url: '/system/ProductTheme/' + id,
    method: 'get'
  })
}

// 新增商品题材
export function addProductTheme(data) {
  return request({
    url: '/system/ProductTheme',
    method: 'post',
    data: data
  })
}

// 修改商品题材
export function updateProductTheme(data) {
  return request({
    url: '/system/ProductTheme',
    method: 'put',
    data: data
  })
}

// 删除商品题材
export function delProductTheme(id) {
  return request({
    url: '/system/ProductTheme/' + id,
    method: 'delete'
  })
}
